/*
 * Posicion.h
 *
 *  Created on: 18/11/2013
 *      Author: fernando
 */

#ifndef POSICION_H_
#define POSICION_H_

#include <vector>
#include "jsoncpp/json/json.h"

class Posicion {
public:
	Posicion(unsigned int x, unsigned int y);
	unsigned int getX();
	unsigned int getY();
	bool operator ==(Posicion& c);
	static void sortPosiciones(std::vector<Posicion>* pos);
	static void eliminarRepetidas(std::vector<Posicion>* pos);
	Json::Value toJson();
private:
	unsigned int x;
	unsigned int y;
};

#endif /* POSICION_H_ */
